const limitOptions = new Map([
  [1440, '1天'],
  [4320, '3天'],
  [10080, '7天'],
  [21600, '15天'],
  [43200, '一个月'],
  [86400, '两个月'],
  [129600, '包季'],
  [259200, '半年'],
  [302400, '半年+1月'],
  [525600, '一年'],
  [612000, '1年+2月'],
  [1051200, '两年'],
  [1576800, '三年'],
  [36792000, '终身']
])
const cycleOptions = new Map([
  [43200, '一个月'],
  [129600, '一季'],
  [525600, '一年']
])
// const limitOptions = new Map([
//   [43200: '一个月'] dictValue: 43200, dictLabel:  },
//   { dictValue: 129600, dictLabel: '包季' },
//   { dictValue: 259200, dictLabel: '半年' },
//   { dictValue: 525600, dictLabel: '一年' },
//   { dictValue: 1576800, dictLabel: '三年' },
//   { dictValue: 36792000, dictLabel: '终身' }
// ])
const orderStatus = new Map([
  [1, { desc: '待付款', tagType: '' }],
  [2, { desc: '已付款', tagType: 'success' }],
  // [3, { desc: '失败', tagType: 'info' }],
  // [4, { desc: '已取消', tagType: 'danger' }],
  [5, { desc: '订单超时', tagType: 'danger' }],
  [6, { desc: '已退款', tagType: '' }]
])
const invoiceStatus = new Map([
  [1, { desc: '审核中', tagType: '' }],
  [2, { desc: '开票中', tagType: 'warning' }],
  [3, { desc: '已开票', tagType: 'success' }],
  [4, { desc: '开票失败', tagType: 'danger' }],
  [5, { desc: '已驳回', tagType: 'danger' }],
  [6, { desc: '已作废', tagType: 'info' }],
  [7, { desc: '报废中', tagType: 'info' }],
  [8, { desc: '报废失败', tagType: 'danger' }]
])
const agreeOrderStatus = new Map([
  ['signed_success', { desc: '签约中', tagType: 'success' }],
  ['unsigned_success', { desc: '已解约', tagType: 'danger' }]
])
const exchangeCodeType = new Map([
  [1, { desc: '第三方' }],
  [2, { desc: '赠送' }],
  [3, { desc: '口令码', customCodes: true }]
])
export function getMemberValidTime () {
  return limitOptions
}
export function getOrderStatus () {
  return orderStatus
}
export function getInvoiceStatus () {
  return invoiceStatus
}
export function getAgreeOrderStatus () {
  return agreeOrderStatus
}
export function getCycleValidTime () {
  return cycleOptions
}
export function getExchangeCodeType () {
  return exchangeCodeType
}
